package com.rwb.springboot.sell.dao;

import com.rwb.springboot.sell.vo.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by ruwenbo on 2017/12/19.
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String>{

    /**
     * 根据买家id查询订单（分页）
     * @param buyerOpenid
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);


}
